package com.chengzhi.receive;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @param
 * @author RCZ
 * @description
 * @create 2018-01-20 15:10
 */
@Component
@RabbitListener(queues = "hello")
public class Receiver {

    @RabbitHandler
    public void proess(String name) {
        System.out.println("接收到消息"+name);
    }
}
